﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebClient
{
    public partial class Baohanh : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack) {
                LoadBaoHanh();
            }
        }
        /// <summary>
        /// Lay thong tin bao hanh
        /// </summary>
        private void LoadBaoHanh()
        {
            WebData db = new WebData();
            object obj = 24;
            DTO.News item = db.GetItemByIdNews(obj);
            lblContent.Text = "<p>" + item.bodyNew + "</p>";
            lblTitle.Text = item.title;
        }
    }
}